/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package String;

/**
 *
 * @author gamas
 */
public class compareTo {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       String a="cadenas";
       String b="cadena";
        System.out.println(a.compareTo(b));
        //compara dos cadenas y determina la diferencia que
        //hay entre los dos valores
    }
}
